import request from '@/utils/request'

// 查询物料储分配送工艺基础表列表
export function listIteminfoDistri(query) {
  return request({
    url: '/base/iteminfoDistri/list',
    method: 'get',
    params: query
  })
}

// 查询物料储分配送工艺基础表详细
export function getIteminfoDistri(id) {
  return request({
    url: '/base/iteminfoDistri/' + id,
    method: 'get'
  })
}

// 新增物料储分配送工艺基础表
export function addIteminfoDistri(data) {
  return request({
    url: '/base/iteminfoDistri',
    method: 'post',
    data: data
  })
}

// 修改物料储分配送工艺基础表
export function updateIteminfoDistri(data) {
  return request({
    url: '/base/iteminfoDistri',
    method: 'put',
    data: data
  })
}

// 删除物料储分配送工艺基础表
export function delIteminfoDistri(id) {
  return request({
    url: '/base/iteminfoDistri/' + id,
    method: 'delete'
  })
}
